package org.class05.ioc_01;

//饿汉式
public class ClientService {
    private static ClientService clientService = new ClientService();

    //    单例设计模式关键是构造方法私有化
    private ClientService() {
    }

    public static ClientService createInstance() {
        return clientService;
    }
}
